package com.example.shop.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.Hidden;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;



@Data
@TableName("t_goods")
//出租物品
public class Goods {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer agreementId;

    private String name;

    private String img;

    private Integer userId;


    private BigDecimal price;

    private Integer unit;

    private Integer status;


    private String remark;
    @TableField(exist = false)
    private String contact;

    @Hidden
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Hidden
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;


    @TableField(exist = false)
    private String userName;


}